package com.example.demo.dao;

import com.example.demo.entity.Supplier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.lang.Nullable;


/**
 *
 */
public interface SupplierJPARepository extends JpaRepository<Supplier,Long> , JpaSpecificationExecutor<Supplier> {

    Page<Supplier> findByNameContaining(@Nullable String name, Pageable pageable);

}
